<?php

class Food
{
    public $name = 'food';
    public $weight;
}

class Apple extends Food
{
    public function __construct()
    {
        $this->name = 'apple';
    }

    public $radius;
}

class Meat extends Food
{
    public function __construct()
    {
        $this->name = 'meat';
    }

    public $fat;
}

class Rice extends Food
{
    public function __construct()
    {
        $this->name = 'rice';
    }

    public $hard;
}